IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cms_sp_EntityMetaSave]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[cms_sp_EntityMetaSave]
GO
create procedure [dbo].[cms_sp_EntityMetaSave]
@Id int,
@EntityMetaFieldLinkId int,
@EntityId int,
@EntityMetaValue nvarchar(max)
as
update dbo.EntityMetas
set
	EntityMetaFieldLinkId = @EntityMetaFieldLinkId,
	EntityId = @EntityId,
	EntityMetaValue = @EntityMetaValue
where EntityMetaId = @Id


GO

